import requests

url = 'https://movie.douban.com/subject/4811774/?from=showing'
head_data = {
    # 字典，需要有一个键值对
    'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.0.0 Safari/537.36'
}
html = requests.get(url, headers=head_data)
# print(html.text)
from bs4 import BeautifulSoup

bs4_data = BeautifulSoup(html.text,'lxml')

m_info = bs4_data.find('div',id="info")
print(m_info.text.splitlines())
